package com.medaxis.hpams.sso.domain.dto;

import com.medaxis.hpams.sso.domain.User;
import lombok.Data;

import java.util.Date;

@Data
public class UserDto extends User {

    public static Boolean isAdmin(Long userId){
        return userId !=null && 1L ==userId;
    }

    public static User toUser(UserDto dto){
        return (User)dto;
    }

    private Long [] postIds;

    private Date beginTime;
    private Date endTime;

}
